package cn.mjnxin.iot.connector.exception;

import cn.mjnxin.iot.connector.message.IMessage;

/**
 * 报文不支持异常
 * @author CLG 2023年10月10日
 * @version V1.0.0
 */
public class MessageNotSupportException extends Exception {
	private static final long serialVersionUID = 1L;
	private IMessage<?> message;
	public MessageNotSupportException() {
    }

    /**
     * @param message String
     */
    public MessageNotSupportException(IMessage<?> message) {
        this.message = message;
    }

    /**
     * @param cause Throwable
     */
    public MessageNotSupportException(Throwable cause) {
        super(cause);
    }

    /**
     * @param message String
     * @param cause Throwable
     */
    public MessageNotSupportException(String message, Throwable cause) {
        super(message, cause);
    }

	public IMessage<?> getTarget() {
		return message;
	}
}
